import React from 'react'
import ReactDOM from 'react-dom/client'
//引入react-router-dom
import { BrowserRouter } from 'react-router-dom'

import App from './App'
// ReactDOM.render(<App></App>, document.getElementById('root'))
const root = ReactDOM.createRoot(document.getElementById('root'))
root.render(
  // BrowserRouter帮我们监听了路径的变化
  <BrowserRouter>
    <App></App>
  </BrowserRouter>
)
